package com.feri.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feri.shop.dto.CartDetailDto;
import com.feri.shop.entity.Cart;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CartDao extends BaseMapper<Cart> {
    @Select("select c.*,ci.gid,ci.num,ci.joinprice,ci.id ciid  from t_cart c left join t_cart_item ci on c.id=ci.cid where c.uid=#{uid}")
    List<CartDetailDto> selectMy(long uid);
}
